import Vue from 'vue'
import Router from 'vue-router'
import Home from '@/views/Home.vue'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'home',
      component: Home
    },
   {
     path:"/layout",
     name:'layout',
     component:() => import('@/views/mobile/layout'),
     children:[
      {
        // 首页
        path:"/home",
        name:'home',
        component:() => import('@/views/mobile/layout')
      },
      {
        path:"/layout",
        name:'layout',
        component:() => import('@/views/mobile/layout')
      },
      {
        path:"/layout",
        name:'layout',
        component:() => import('@/views/mobile/layout')
      },
      {
        path:"/layout",
        name:'layout',
        component:() => import('@/views/mobile/layout')
      },
     ]
   },
  ]
})
